import request from "@/utils/request";

// 1.请求品牌分页列表
export const reqTrademarkList = (page, limit) => {
  return request.get(`/admin/product/baseTrademark/${page}/${limit}`);
};

// 2.请求新增品牌
export const reqAddTrademark = tmInfo => {
  return request.post(`/admin/product/baseTrademark/save`, tmInfo);
};

//3.请求修改品牌信息
export const reqUpdateTrademark = tmInfo => {
  return request.put(`/admin/product/baseTrademark/update`, tmInfo);
};

// 4.删除品牌的请求
export const reqDeleteTrademark = id => {
  return request.delete(`/admin/product/baseTrademark/remove/${id}`);
};

// 5.获取所有品牌
export const reqAllTrademark = () => {
  return request.get(`/admin/product/baseTrademark/getTrademarkList`);
};
